package org.ms.springboot.config;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class RateLimiterFilter {
    private int globalRate;
    private List<RateLimiterProperties.LimiterRule> limitMappings;

    public RateLimiterFilter(int globalRate){
        this.globalRate=globalRate;
    }
    public void setLimitMappings(List<RateLimiterProperties.LimiterRule> limitMappings) {
        this.limitMappings=limitMappings;
    }
}
